<?php /* Fusion/digitalnature */ ?>

<?php get_header(); ?>

<!-- main content -->
<div id="main-content">
  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="navigation">
      <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
      <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
      <div class="clear"></div>
    </div>

	<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
		<h2><?php the_title(); ?></h2>

                <div class="postheader">
                    <div class="postinfo">
                    <?php printf(__('<i>by</i> %s in %s','fusion'),'<a href="'. get_author_posts_url(get_the_author_ID()) .'" title="'. sprintf(__("Posts by %s","fusion"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>',get_the_category_list(', ')) ?>  <?php printf(' '.__("on","fusion").' ');the_time(__('F jS, Y','fusion')) ?>

                    <span class="editlink"><?php edit_post_link(''); ?></span>
                    </div>
                </div>
<p></p><br>

	    <div class="entry">
          <div class="postbody entry">
		  	<?php the_content(__('Read the rest of this entry &raquo;', 'fusion')); ?>
          </div>
          <?php wp_link_pages(array('before' => '<p><strong>Pages: </strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
          <?php
          $posttags = get_the_tags();
          if ($posttags) { ?>
          <div class="tags"><?php the_tags(''); ?></div>
          <div class="clear"></div>
          <?php } ?>
                <p class="postcontrols">
                  <?php
                  global $id, $comment;
  	              $number = get_comments_number( $id );
                  ?>
                  <a class="<?php if($number<1) { echo 'no '; }?>comments" href="<?php comments_link(); ?>"><?php comments_number(__('No Comments','fusion'), __('1 Comment','fusion'), __('% Comments','fusion')); ?></a>
                </p>

	    </div>
    </div>
	<?php comments_template(); ?>
  <?php endwhile; else: ?>
    <p><?php _e("Sorry, no posts matched your criteria.","fusion"); ?></p>
  <?php endif; ?>
</div>
<!-- /main content -->

</div>
<!-- /main -->
</div>
<!-- /main wrapper -->

<?php get_sidebar(); ?>

<!-- clear main & sidebar sections -->
<div class="clearcontent"></div>
<!-- /clear main & sidebar sections -->

<?php get_footer(); ?>